package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 属性&属性分组关联
 * 
 * @author dingchunlin
 * @email dingchunlin@gmail.com
 * @date 2023-11-27 11:31:59
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {
    @Select("select attr_id from pms_attr_attrgroup_relation where attr_group_id = #{attrGroupId} ")
    List<Long> selectByGroupId(Long attrGroupId);
}
